package com.mzpai.product.service;
import java.math.BigDecimal;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.github.pagehelper.PageInfo;
import com.mzpai.product.model.User;
import com.mzpai.product.vo.DeductGoldRechargeVo;
import com.mzpai.product.vo.UserInfoVo;
import com.mzpai.service.BaseService;

public interface UserService extends BaseService<User> {
	
	User queryByUserId(@Param("userId") Integer userId);
	
	User queryByUserText(@Param("userText") String userText);
	
	void addDeductGoldRecharge(DeductGoldRechargeVo deductGoldRechargeVo,Integer usrId);
	
	
	/**
	 * 用户信息
	 * @param map
	 * @return
	 */
	PageInfo<UserInfoVo> getUserListByPage(Map<String,Object> map, Integer pageNum,Integer pageSize);
	
	
	/**
	 * 获取用户可用抵扣金总额
	 * @param storeId
	 * @param userId
	 * @return
	 */
	BigDecimal getTotalDeducteGold(Integer storeId, Integer userId);
	
}